-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Scala 2.13 support #823
Conversation
def withClose[B](f: Iterator[A] => Iterator[B]): ClosableIterator[B] = new ClosableIterator[B] { | ||
private val iter = | ||
try { | ||
f(iterator) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The change is because scala/scala-collection-compat#7 changed iterator()
to iterator
and it conflicts with the IteratorCloseOps.iterator
field. Renaming it to fix it for 2.13.
@@ -75,10 +76,12 @@ trait DeltaLogging | |||
} else { | |||
Map.empty[TagDefinition, String] | |||
} | |||
|
|||
val finalTags = mutable.Map[TagDefinition, String](TAG_OP_TYPE -> opType) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Manually create the map as immutable.Map ++
got removed in Scala 2.13.
Most of changes are caused by the following two breaking changes in Scala.
The fix is just adding
toSeq
andtoMap
.See https://docs.scala-lang.org/overviews/core/collections-migration-213.html for more details.